﻿singleApp.controller('ordersCtrl', ['$http', '$scope', '$sce', function ($http, $scope, $sce) {
    $scope.list = [];
    $scope.status_str = ["已提交，未审核", "审核通过", "未审核通过", "", "已被用户删除"];

    //Init
    $scope.init = function () {
        layer.load(2);
        var api_url = window.singleConfig.rootUrl + "api/admin/OrdersService/getAll";

        $http.get(api_url).then(function (result) {
            var data = result.data;
            $scope.list = data.data;
            layer.closeAll();
        }, function () { });
    };

    $scope.init();
}]);